home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update19.zoo / gcc2.1 / README.TOS < prev    next >
Encoding:
Text File  |  1992-03-28  |  2.3 KB  |  77 lines

  1. This is the README file for the GNU native/cross compiler. Diffs are
  2. with respect to GCC V2.1
  3.  
  4.     -configuration:
  5.         copy all the files from the gcc v2.1 distribution
  6.         into a directory called SRC (i created symbolic links between
  7.         the files).
  8.         copy all the files from the gcc v2.1 distribution
  9.              sub-directory config into SRC/config
  10.         copy all the files in this directory into SRC.
  11.            (note: there are 2 .h files astab.h and PatchLev.h to be
  12.                copied into SRC too).
  13.         copy xm-atari.h and tm-atari.h into SRC/config
  14.         cd to SRC
  15.         Apply the diffs using larry walls patch program
  16.             patch < gcc-21.diff
  17.         make the following links in SRC
  18.             config.h to config/xm-atari.h
  19.             tconfig.h to config/xm-atari.h
  20.             tm.h to config/tm-atari.h
  21.             aux-output.c to config/m68k.c
  22.             md to config/m68k.md
  23.  
  24.         edit Makefile.* to make sure the following
  25.         are defined appro.:
  26.         CROSSDIR -- the home directory of the cross dev. system
  27.  
  28.         edit xm-atari.h & tm-atari.h and replace all
  29.         instances of the string ".../home/bammi/cross-../..."
  30.         with CROSSDIR/... (ie. the same string as CROSSDIR above
  31.         plus whatever was there after .../home/bammi/cross-.../ ).
  32.  
  33.         edit config/tm-atari.h and at the top of the file set
  34.         TARGET_DEFAULT appropriately. this file is now
  35.         conditionalized for various combinations of 
  36.         68000/68020/68881
  37.  
  38.         you DO NOT have to edit gcc.c anymore to look for paths to edit.
  39.  
  40.  
  41.     -make cross compiler by
  42.         make -f Makefile.cross
  43.     will make and install cpp, cc1  and gcc
  44.  
  45.     -clean out the directory by
  46.         make -f Makefile.cross clean
  47.  
  48.     - to make atari st executables
  49.        - make and install cross compiler as above (or use your native
  50.         tos -gcc compiler)
  51.        - make by
  52.         make -f Makefile.st
  53.  
  54. Please note: *.c files in this directory are the already patched files
  55. for the gcc-src directory.
  56.  
  57. which makefile to use:
  58.  
  59.  
  60. On a (BSD unix host)       On a HPUX host
  61. (Only sun sparc tested)
  62.  
  63. GMakefile        GMakefile.hp        to make the CROSS-g++ parts
  64. GMakefile.st        GMakefile.st.hp        to make NATIVE-g++ parts
  65. Makefile        Makefile.hp        to make CROSS-gcc parts
  66. Makefile.st        Makefile.st.hp        to make NATIVE-gcc parts
  67.  
  68.  
  69. NATIVE parts are 68k code that run on the atari.
  70. CROSS parts run on the HOST and not on the atari.
  71.  
  72. --
  73. bang:   uunet!cadence!bammi            jwahar r. bammi
  74. domain: bammi@cadence.com
  75. GEnie:    J.Bammi
  76. CIS:    71515,155
  77.